package com.vcit.common.core.domain.entity;

import com.vcit.common.annotation.Excel;
import com.vcit.common.core.domain.BaseEntity;
import com.vcit.common.xss.Xss;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.util.Date;
import java.util.List;

/**
 * 用户对象 sys_user
 * 
 * @author dff
 */
public class SysUserExcelImport extends BaseEntity
{
    private static final long serialVersionUID = -2683157500729271640L;




    /** 用户账号 */
    @Excel(name = "登录名称"  )
    private String userName;

    /** 用户昵称 */
    @Excel(name = "用户名称"  )
    private String nickName;

    /** 用户邮箱 */
    @Excel(name = "用户邮箱"  )
    private String email;

    /** 手机号码 */
    @Excel(name = "手机号码", cellType = Excel.ColumnType.TEXT  )
    private String phonenumber;

    /** 用户性别 */
    @Excel(name = "学生性别",readConverterExp = "0=男,1=女,2=未知",dictType ="sys_user_sex",comboReadDict=true,needMerge = true)
    private String sex;

    @Excel(name = "部门名称")
    private String deptName;


    /** 出生日期 */
    @Excel(name = "出生日期", width = 30, dateFormat = "yyyy-MM-dd",prompt = "2005-02-21"  )
    private Date birthDate;

    /** 身份证号 */
    @Excel(name = "身份证号",cellType = Excel.ColumnType.TEXT, prompt = "请输入18位身份证号"  )
    @Size(min = 0, max = 18, message = "身份证号长度不能超过18个字符")
    private String idCard;

    /** 住址 */
    @Excel(name = "住址"  )
    @Size(min = 0, max = 200, message = "住址长度不能超过200个字符")
    private String address;

    /** 密码 */
    private String password;

    /** 帐号状态（0正常 1停用） */
    @Excel(name = "帐号状态", readConverterExp = "0=正常,1=停用", type = Excel.Type.EXPORT)
    private String status;




    @Xss(message = "用户昵称不能包含脚本字符")
    @Size(min = 0, max = 30, message = "用户昵称长度不能超过30个字符")
    public String getNickName()
    {
        return nickName;
    }

    public void setNickName(String nickName)
    {
        this.nickName = nickName;
    }

    @Xss(message = "用户账号不能包含脚本字符")
    @NotBlank(message = "用户账号不能为空")
    @Size(min = 0, max = 30, message = "用户账号长度不能超过30个字符")
    public String getUserName()
    {
        return userName;
    }

    public void setUserName(String userName)
    {
        this.userName = userName;
    }

    @Email(message = "邮箱格式不正确")
    @Size(min = 0, max = 50, message = "邮箱长度不能超过50个字符")
    public String getEmail()
    {
        return email;
    }

    public void setEmail(String email)
    {
        this.email = email;
    }

    @Size(min = 0, max = 11, message = "手机号码长度不能超过11个字符")
    public String getPhonenumber()
    {
        return phonenumber;
    }

    public void setPhonenumber(String phonenumber)
    {
        this.phonenumber = phonenumber;
    }

    public String getSex()
    {
        return sex;
    }

    public void setSex(String sex)
    {
        this.sex = sex;
    }



    public Date getBirthDate()
    {
        return birthDate;
    }

    public void setBirthDate(Date birthDate)
    {
        this.birthDate = birthDate;
    }

    public String getIdCard()
    {
        return idCard;
    }

    public void setIdCard(String idCard)
    {
        this.idCard = idCard;
    }

    public String getAddress()
    {
        return address;
    }

    public void setAddress(String address)
    {
        this.address = address;
    }

    public String getPassword()
    {
        return password;
    }

    public void setPassword(String password)
    {
        this.password = password;
    }

    public String getStatus()
    {
        return status;
    }

    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }
}
